{template 'common/header'}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('member')}&op=playhistory">游戏记录</a></li>
	<li><a href="{php echo $this->createWebUrl('member')}&op=membermanager">会员管理</a></li>
		<li><a href="{php echo $this->createWebUrl('qrmanager')}">游戏二维码</a></li>
	
</ul>   
<form action="" method="get">
<input type="hidden" name="c" value="site">
<input type="hidden" name="a" value="entry">
<input type="hidden" name="m" value="game_fish">
<input type="hidden" name="do" value="member">
<input type="hidden" name="op" value="selecthistory">
<div class="panel panel-default"> 
    <div class="panel-body table-responsive"> 
                          <!--<div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">游戏时间：</span>
                             
									 {php echo tpl_form_field_daterange("gamefinishtime");}
                                </div>
                                
                           </div>  -->
                          <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">昵称：</span>
                             
									<input type="text" name="nickname" value="{$nickname}" class="form-control"/>
                                </div>
                                
                           </div>
 						<input type="submit" class="btn btn-primary" value="搜索"/>
    </div>
</div>
</form>
        <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data"  onsubmit="return formcheck(this)">

   <div class="panel panel-default"> 
    <div class="panel-body table-responsive"> 
     <table class="table table-hover "> 
      <thead class="navbar-inner"> 
    
       <tr>  
        <th>游戏时间</th> 
        <th>会员昵称</th> 
        <th>获取积分</th>  
       </tr> 

      </thead> 
   <script>     
   function getLocalTime(nS) {     
      return new Date(parseInt(nS) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ");      
   }          
   </script>
      <tbody>
        {loop $historylist $history $historyitem} 
      <tr>  
        <td><script>document.write(getLocalTime({$historyitem[gamefinishtime]})); </script></td> 
		<td><img src="{$historyitem[avatar]}" style="width:30px;height:30px;">{$historyitem[nickname]}</td>
        <td>{$historyitem[getpoint]}</td> 
       </tr>        
		{/loop}
		
      </tbody> 
     </table> 
    </div> 
   </div> 
   	<input name="token" type="hidden" value="{$_W['token']}" />
   	<input type="hidden" name="nickname" value="{$nickname}"/>
   {$pager}
   </form>
{template 'common/footer'}